package com.gmail.hongyz.myfuse.model;

import java.util.Date;
import java.util.Set;

/**
 * 
 * @author hongyz
 * @hibernate.class table="app_project"
 *
 */
public class Project {

	private String id;
	private String name;
	private String description;
	private Date startDate;
	private Date endDate;
	private String status;
	private User owner;
	private Set<UserRole> projectMembers;
	
	/**
     * @hibernate.id column="id" generator-class="uuid" unsaved-value="null"
     */
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	/**
     * @hibernate.property length="50" not-null="true" unique="true"
     */
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	/**
     * @hibernate.property length="1000"
     */
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public User getOwner() {
		return owner;
	}
	public void setOwner(User owner) {
		this.owner = owner;
	}
	public Set<UserRole> getProjectMembers() {
		return projectMembers;
	}
	public void setProjectMembers(Set<UserRole> projectMembers) {
		this.projectMembers = projectMembers;
	}
}
